<?php
/**
 * User: lie
 * Date: 2020/12/4 10:50
 * Title: 解析帖子中的特殊字符
 * Description:
 * Error:
 */
$s = "mingri";
$str = "$.\+*?[]^()$s";
echo "转换前：".$str."<br>";
echo "转换后：".quotemeta($str);